package com.itheima.ydd.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ydd_cate")
public class Cate implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String catename;

    //字段图标class
    private String icon;

    //排序数字
    private Integer sort_num;

    //是否为默认数据，null表示不是，1表示是
    private String default_data;

    @TableField(exist = false)
    private Integer     num;//分类下文章数
}
